OpenService (advapi32)
Last changed: grinberg.nir@gmail.com-62.219.238.162

.
Summary
The OpenService function opens an existing service.

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern IntPtr OpenService( IntPtr hSCManager, string lpServiceName, SERVICE_ACCESS eDesiredAccess );

VB Signature:

Declare Function OpenService Lib "advapi32.dll" (TODO) As TODO

User-Defined Types:

None.

Notes:

See

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Unless you are going use EnumDependentServices API please use 'System..ServiceProcess..ServiceController' that is provided in the framework.

Documentation
OpenService on MSDN